'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: dataset_task.py
* @Time: 2025/9/28
* @All Rights Reserve By Brtc
'''
from uuid import UUID
from celery import shared_task
@shared_task
def delete_dataset(dataset_id: UUID) -> None:
    """根据传递的知识库id删除特定的知识库信息"""
    from app.http.app import app_injector
    from internal.service import IndexingService
    indexing_service = app_injector.get(IndexingService)
    indexing_service.delete_dataset(dataset_id)